package com.sq.partner.manager.service.impl.credit;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.credit.CreditRiskDao;
import com.sq.partner.manager.mybatis.model.CreditRisk;
import com.sq.partner.manager.service.credit.CreditRiskService;
@Service
public class CreditRiskServiceImpl implements CreditRiskService {

	@Resource
	private CreditRiskDao creditRiskDao;
	@Override
	public boolean updateCreditRisk(CreditRisk creditRisk) throws Exception {
		return creditRiskDao.updateCreditRisk(creditRisk);
	}

	@Override
	public boolean addCreditRisk(CreditRisk creditRisk) throws Exception {
		return creditRiskDao.addCreditRisk(creditRisk);
	}

	@Override
	public boolean delCreditRiskByProdId(String prodCode) throws Exception {
		// TODO Auto-generated method stub
		return creditRiskDao.delCreditRiskByProdId(prodCode);
	}

	@Override
	public boolean delCreditRiskByRisk(CreditRisk creditRisk) throws Exception {
		// TODO Auto-generated method stub
		return creditRiskDao.delCreditRiskByRisk(creditRisk);
	}

}
